<!--
 * @Author: xiaonancheng
 * @Date: 2023-07-03 09:43:31
 * https://www.cnblogs.com/xiaonancheng
 * Copyright (c) 2023 by @xiaonancheng, All Rights Reserved. 
-->
{% extends 'base.html' %}
{% block main %}
<div>
    <form action="{% url 'search' %}" method="get">
        <h3>这是GET搜素</h3>
        <h3>您GET搜索的内容为：{{q}}</h3>
        <input type="text" name="q" id="get_q" value="{{q}}" >
        <input type="submit">
    </form>
</div>
<div>
    <form action="{% url 'search' %}" method="post">
        {% csrf_token %}
        <h3>这是POST搜素</h3>
        <h3>您POST搜索的内容为：{{pq}}</h3>
        <input type="text" name="q" id="post_q" value="{{pq}}">
        <input type="submit">
    </form>
</div>




{% endblock %}